﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileList.aspx.cs" Inherits="DreamBox.Admin.File.FileList" %>
<%@ Register src="../Controls/PagerUserControl.ascx" tagname="PagerUserControl" tagprefix="uc1" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
          <script type="text/javascript" src="/tools/js/jquery-1.9.1.min.js"></script>


 <link href="/style/default/css/style.css" rel="stylesheet" type="text/css" />

    <link href="/style/default/css/tb.css" rel="stylesheet" />

     <style type="text/css">
        .MSelectItem{
	        background:#79c7f3;
	        background-color:#79c7f3;
        }
        .MItem
        {
            background:White;
	        background-color:White;
        }
    </style>
    <script type="text/javascript">
        //全选/反选
        function Check(che) {
            var gv = document.getElementById("tablelist");
            for (var i = 2; i < gv.rows.length; i++) {
                gv.rows[i].cells[0].getElementsByTagName("input")[0].checked = che.checked;
            }
        }
        //颜色选项
        function SelectItem(item) {
            $("#" + item.id).attr("class", "MSelectItem");
        }
        function UnSelectItem(item) {
            $("#" + item.id).attr("class", "");
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
   <table cellpadding="0" cellspacing="0" border="0" class="table table-bordered" id="tablelist">
           <tr>
                <td colspan="11" align="center">
                   	

                </td>
           </tr>
			<tr>
				<th>
                    <asp:CheckBox ID="BoxSelected" runat="server" onclick="Check(this)" Text="" />
               </th>
               <th>ID</th>
               <th>标题</th>
               <th>分类</th>
               <th>发布人</th>
               <th>发布时间</th>
               <th>浏览</th>
               <th>+1</th>
               <th>状态</th>
               <th>排序</th>
               <th>操作</th>
			</tr>

                <asp:Repeater ID="RepeaterList" runat="server">
            <ItemTemplate>
			<tr onmouseover="SelectItem(this)"  onmouseout="UnSelectItem(this)" id="Item<%#Eval("FileID") %>" >
				<td>
                    <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%#Eval("FileID") %>' />
                </td>
                 <td>
                  <%#Eval("FileID") %>
                </td>
                 <td>
                  <%#Eval("Title") %>
                </td>
                 <td>
                  <%#Eval("CID") %>
                </td>
                <td>
                  <%#Eval("UserID") %>
                </td>
                <td>
                    <%#Eval("PostDate") %>
                </td>
                <td>
                    <%#Eval("BrowseCount") %>
                </td>
                <td>
                    <%#Eval("Plus") %>
                </td>
                
                 <td>
                    <%#bool.Parse(Eval("IsStatus").ToString())==false?"锁定":"正常" %>
                </td>
                <td>
                    <%#Eval("Sort") %>
                </td>
                <td>
                    <a class="btn-link" href="UrlUpdate.aspx?FileID=<%#Eval("FileID") %>">编辑</a>
                    <asp:LinkButton ID="LinkBtnDel" CssClass="" runat="server" 
                    onclick="LinkBtnDelete_Click" OnClientClick="return confirm('确认执行删除操作?')" ToolTip='<%#Eval("FileID") %>' >删除</asp:LinkButton>
                </td>
			</tr>
           
            </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td colspan="11" class="pager">
                    <uc1:PagerUserControl ID="PagerList" runat="server" />
                </td>
            </tr>
        </table>

    </form>
</body>
</html>
